package com.community.backend.mapper;

import com.community.backend.pojo.Visitor;
import com.community.backend.pojo.dto.VisitorQueryDTO;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface VisitorMapper {
    Page<Visitor> pageQuery(VisitorQueryDTO visitorQueryDTO);

    void insert(Visitor visitor);
@Update("update visitor set isDelete = '已删除' where id = #{id}")
    void deleteById(Integer id);

    void update(Visitor visitor);
@Select("select * from visitor where id = #{id}")
    Visitor selectById(Integer id);
}
